+2007-07-19 Kristian Rietveld <kris@imendio.com>
+
+ * gtk/gtktooltip.c (find_topmost_widget_coords_from_event): handle
+ no-window and regular widgets seperately.
+
+ * gtk/gtktreeview.c (gkt_tree_view_set_tooltip_cell): rect.x should
+ be zero.
+
2007-07-19 Matthias Clasen <mclasen@redhat.com>
* gtk/gtk.symbols:
tmp = find_widget_under_pointer (event->any.window, &tx, &ty);
- /* Make sure the pointer can actually be on the widget returned */
- if (!tmp ||
- tx < 0 || tx >= tmp->allocation.width ||
- ty < 0 || ty >= tmp->allocation.height)
+ if (!tmp)
return NULL;
+ /* Make sure the pointer can actually be on the widget returned */
+ if (GTK_WIDGET_NO_WINDOW (tmp))
+ {
+ if (tx < tmp->allocation.x ||
+ tx >= tmp->allocation.x + tmp->allocation.width ||
+ ty < tmp->allocation.y ||
+ ty >= tmp->allocation.y + tmp->allocation.height)
+ return NULL;
+ }
+ else
+ {
+ if (tx < 0 || tx >= tmp->allocation.width ||
+ ty < 0 || ty >= tmp->allocation.height)
+ return NULL;
+ }
+
if (x)
*x = tx;
if (y)